﻿@page "/logsviewer"
@using System.IO
@using System.Runtime.Versioning
@attribute [TabItemOption(Text = "查看日记",Icon = "fa-fw fa-solid fa-desktop")]

<div class="row">
    <div class="col-md-3" style="background-color:coral">
        <LogsTreeLeftViewer OnFileSelected="HandleFileSelectedAsync"></LogsTreeLeftViewer>
    </div>
    <div class="col-md-9" style="background-color:burlywood">
        @if (!string.IsNullOrEmpty(_logContent))
        {
            <pre class="pre-scrollable" style="height: 800px;">@_logContent</pre>
        }
        else
        {
            <p>请从左侧树列表中点击选择一个日志文件。</p>
        }
    </div>
</div>






